
<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<html>
<head>
	<meta charset="UTF-8">
	<title>Insert title here</title>`
</head>
<body>
	<form >
		<input type="hidden"id="pid" name="pid" th:value="${u.pid}">
		用户名:<input type="text" name="pname" id="pname" th:value="${u.pname}"><br>

		多余:<input type="text" name="salt" id="salt" th:value="${u.salt}"><br>

		角色:
		<span th:each="r : ${roles}">
			<input type="checkbox"name="roleId" th:value="${r.roleId}" th:text="${r.roleName}" th:checked="${rolesById.contains(r.roleId)}">
		</span>
	</form>
</body>
</html>